package com.itheima.mianx;

public class DeMo04 {
    private String name;
    private int age;
    private double height;
    private double weight;

    public void wash(){
        System.out.println("女朋友帮我洗衣服");
    }
    public void cook(){
        System.out.println("女朋友给我做饭");
    }
    public void show(){
        System.out.println("我女朋友叫"+name+","+age+"岁，身高"+height+"厘米，体重"+weight+"公斤");

    }
    public DeMo04(){}
    public DeMo04(String name,int age,double height,double weight){
        this.name = name;
        this.age = age;
        this.height = height;
        this.weight = weight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
}
class gf{
    public static void main(String[] args) {
        DeMo04 g = new DeMo04("柳岩",36,168.5,186.5);
        g.show();
        g.wash();
        g.cook();
    }
}
